var status = -1;
var selectionLog = [];

function start() {
    status = -1;
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.getQuestStatus(35913) == 1) {
                cm.warp(910090308, 0);
                cm.dispose()
            } else {
                cm.Hidden_background("0", 1, 0, 0, 0);
                cm.setPartner(1, 1013350, 80002700, 0);
                cm.dispose()
            }
        }
    }
};